<%@ page import="sanger.Utilities;" %> 
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
    Utilities.logOrRedir(session, request, response);

    String context = request.getContextPath();
%>
<html>
	<head></head>
	<body>
		<p>Commons File Upload Example</p>
		<form action="Upload" enctype="multipart/form-data" method="POST">
			<input type="file" name="file1"><br>
			<input type="Submit" value="Upload File"><br>
		</form>
                
                
                
                <%  if (!Utilities.isLogged(session)) {    %>
                <span style="font-weight: bold; color: red"><a href=<%= context %>/login.jsp>Please, log in</a></span>                                            
                <%   } else {   %>
                <span style="font-weight: bold; color: red"><a href=<%= context %>/logout.jsp>Log out</a></span>
                <%   }

                    Utilities.listAWSFile(request, response);
                %>
                             
                
                
                
	</body>
</html>
